package com.comleader.ldmapdownload.util;

/**
 * @author ：杨浩毅 (1759)
 * @date ：2020/9/10 11:41
 */
public class TimeUtils {
    public static String getGapTime(long time){
        long hours = time / (1000 * 60 * 60);
        long minutes = (time-hours*(1000 * 60 * 60 ))/(1000* 60);
        String diffTime="";
        if(hours>=1 ){
            diffTime=hours+"小时"+minutes+"分";
        }else{
            diffTime=minutes+"分";
        }
        return diffTime;
    }
}
